package com.zzb.framework.log.entity;

import com.baomidou.mybatisplus.annotations.KeySequence;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.zzb.framework.common.BaseEntity;


/**
* 系统日志 实体类
*/
@TableName(value = "t_sys_log")
public class SysLog extends BaseEntity<String> {
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    @TableField(value = "class_name")
    private String className; //类名
    @TableField(value = "method_name")
    private String methodName; //方法名
    @TableField(value = "line_number")
    private Integer lineNumber; //行号
    @TableField(value = "log_level")
    private String logLevel; //日志级别
    @TableField(value = "log_type")
    private String logType; //日志类型
    @TableField(value = "log_content")
    private String logContent; //日志内容

    /*----------------------get set 方法----------------------*/
    public String getId() {return id;}
    public void setId(String id) {this.id = id;}
    public String getClassName() {return className;}
    public void setClassName(String className){this.className = className == null ? null : className.trim();}
    public String getMethodName() {return methodName;}
    public void setMethodName(String methodName){this.methodName = methodName == null ? null : methodName.trim();}
    public Integer getLineNumber() {return lineNumber;}
    public void setLineNumber(Integer lineNumber){this.lineNumber = lineNumber;}
    public String getLogLevel() {return logLevel;}
    public void setLogLevel(String logLevel){this.logLevel = logLevel == null ? null : logLevel.trim();}
    public String getLogType() {return logType;}
    public void setLogType(String logType){this.logType = logType == null ? null : logType.trim();}
    public String getLogContent() {return logContent;}
    public void setLogContent(String logContent){this.logContent = logContent == null ? null : logContent.trim();}
    /*----------------------toString 方法----------------------*/
    @Override
    public String toString() {
        return "SysLog{" +
        "id='" + getId() + '\'' + ',' + 
        "className='" + getClassName() + '\'' + ',' + 
        "methodName='" + getMethodName() + '\'' + ',' + 
        "lineNumber='" + getLineNumber() + '\'' + ',' + 
        "logLevel='" + getLogLevel() + '\'' + ',' + 
        "logType='" + getLogType() + '\'' + ',' + 
        "logContent='" + getLogContent() + '\'' + ',' + 
        "createTime='" + getCreateTime() + '\'' + ',' + 
        "creator='" + getCreator() + '\'' + ',' + 
        "updateTime='" + getUpdateTime() + '\'' + ',' + 
        "updater='" + getUpdater() + '\'' + ',' + 
        '}';
    }
}
